# Name of the target
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR cortex-m4)

set(THREADX_ARCH "cortex_m4")
set(THREADX_TOOLCHAIN "gnu")

set(MCPU_FLAGS "-mthumb -mcpu=cortex-m4")
set(VFP_FLAGS "  -mfloat-abi=hard -mfpu=fpv4-sp-d16  ")
set(SPEC_FLAGS "--specs=nosys.specs")
# set(LD_FLAGS "-nostartfiles")
set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/STM32F417IGHx_FLASH.ld)
set(LD_FLAGS " -specs=nano.specs -specs=nosys.specs -u _sprintf_float  -u _scanf_float -u _printf_float  -T${LINKER_SCRIPT} ")

include(${CMAKE_CURRENT_LIST_DIR}/arm-none-eabi.cmake)